{% load static %}
<link rel="stylesheet" href='{% static "/djmd/css/editormd.css" %}'/>
<div id="previewMarkdown">   
    <textarea>{{ markdown }}</textarea>
</div>

{% if include_jquery %} <script src='{% static "/djmd/jquery-3.4.1.min.js" %}'></script> {% endif %}

<script src='{% static "/djmd/editormd.min.js" %}'></script>

<script src='{% static "/djmd/lib/marked.min.js" %}'></script>
<script src='{% static "/djmd/lib/prettify.min.js" %}'></script>
<script src='{% static "/djmd/lib/raphael.min.js" %}'></script>
<script src='{% static "/djmd/lib/underscore.min.js" %}'></script>
<script src='{% static "/djmd/lib/sequence-diagram.min.js" %}'></script>
<script src='{% static "/djmd/lib/flowchart.min.js" %}'></script>
<script src='{% static "/djmd/lib/jquery.flowchart.min.js" %}'></script>

<script>

    $(function(){

        editormd.markdownToHTML("previewMarkdown", {
            htmlDecode: "style,script,iframe",
            markdownSourceCode : true, 
            {% comment %} 在此行之后添加初始化选项 {% endcomment %}
        });

    });
</script>
